package org.autocode.code;

import org.autocode.code.type.JavaType;

/**
 * @program: autocode
 * @description:
 * @author: zhu.xiaojie
 * @create: 2020-08-20 23:27
 */
public class ColumnInfo {

    private String columnName;

    private int columnType;

    private String columnComment;


    public JavaType getJavaType() {
        JavaType javaType = MysqlJavaMapping.getJavaType(this.columnType);
        return javaType;
    }


    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public int getColumnType() {
        return columnType;
    }

    public void setColumnType(int columnType) {
        this.columnType = columnType;
    }





    public String getColumnComment() {
        return columnComment;
    }

    public void setColumnComment(String columnComment) {
        this.columnComment = columnComment;
    }
}
